home *** CD-ROM | disk | FTP | other *** search
/ Aminet 45 / Aminet 45 (2001)(GTI - Schatztruhe)[!][Oct 2001].iso / Aminet / mus / misc / Lame68k.lha / lame-3.89 / USAGE < prev   
Encoding:
Text File  |  2001-07-12  |  25.2 KB  |  753 lines

  1.  
  2. % lame [options] inputfile [outputfile]
  3.  
  4. For more options, just type:
  5. % lame --help
  6.  
  7.  
  8. =======================================================================
  9. Constant Bitrate Examples:
  10. =======================================================================
  11. fixed bit rate jstereo 128 kbps encoding:
  12. % lame sample.wav  sample.mp3      
  13.  
  14. fixed bit rate jstereo 128 kbps encoding, higher quality:  (recommended)
  15. % lame -h sample.wav  sample.mp3      
  16.  
  17. Fast encode, low quality  (no noise shaping)
  18. % lame -f sample.wav  sample.mp3     
  19.  
  20. =======================================================================
  21. Variable Bitrate Examples:
  22. =======================================================================
  23. LAME has two types of variable bitrate: ABR and VBR.
  24.  
  25. ABR is the type of variable bitrate encoding usually found in other
  26. MP3 encoders, Vorbis and AAC.  The number of bits is determined by
  27. some metric (like perceptual entropy, or just the number of bits
  28. needed for a certain set of encoding tables), and it is not based on
  29. computing the actual encoding/quantization error.  ABR is still in
  30. beta, but it should always give results equal or better than CBR:
  31.  
  32. ABR:   (--abr <x> means encode with an average bitrate of around x kbps)
  33. lame -h --abr 128  sample.wav sample.mp3
  34.  
  35.  
  36. VBR is a true variable bitrate mode which bases the number of bits for
  37. each frame on the measured quantization error relative to the
  38. estimated allowed masking.  VBR is currently under heavy development.
  39. Right now it can often result in too much compression.  I do not
  40. recommend using VBR.  But if you must, you should at least use a
  41. minimum bitrate of 112 kbps.  This will let LAME increase the bitrate
  42. for difficult-to-encode frames, but prevent LAME from being too
  43. aggressive for simple frames:
  44.  
  45. Variable Bitrate (VBR): (use -V n to adjust quality/filesize)
  46. % lame -h -v -b 112 sample.wav sample.mp3
  47.  
  48.  
  49.  
  50. =======================================================================
  51. LOW BITRATES
  52. =======================================================================
  53. At lower bitrates, (like 24 kbps per channel), it is recommended that
  54. you use a 16 kHz sampling rate combined with lowpass filtering.  LAME,
  55. as well as commercial encoders (FhG, Xing) will do this automatically.
  56. However, if you feel there is too much (or not enough) lowpass
  57. filtering, you may need to try different values of the lowpass cutoff
  58. and passband width (--resample, --lowpass and --lowpass-width options).
  59.  
  60.  
  61. =======================================================================
  62. STREAMING EXAMPLES
  63. =======================================================================
  64.  
  65. % cat inputfile | lame [options] - - > output
  66.  
  67.  
  68.  
  69.  
  70. =======================================================================
  71. Scripts are included (in the 'misc' subdirectory)
  72. to run lame on multiple files:
  73.  
  74. bach script:  mlame     Run "mlame -?" for instructions.
  75. sh script:    auenc     Run auenc for instructions
  76. sh script:    mugeco.sh
  77.  
  78. Windows scripts:
  79. lame4dos.bat  
  80. Lame.vbs   (and an HTML frontend: LameGUI.html)
  81.  
  82.  
  83. =======================================================================
  84. options guide:
  85. =======================================================================
  86. These options are explained in detail below.
  87.  
  88.  
  89. Quality related:
  90.  
  91. -m m/s/j/f/a   mode selection
  92. -k             disable all filtering
  93. -d             allow block types to differ between channels
  94. --athonly      ignore psy-model output, only use masking from the ATH
  95. --voice        experimental voice encoding mode
  96. --noshort      disable short blocks
  97. -q n           Internal algorithm quality setting 0..9. 
  98.                0 = slowest algorithms, but potentially highest quality
  99.                9 = faster algorithms, very poor quality
  100. -h             same as -q2
  101. -f             same as -q7
  102.  
  103.  
  104. Constant Bit Rate (CBR)
  105. -b  n          set bitrate (8, 16, 24, ..., 320)
  106. --freeformat   produce a free format bitstream.  User must also specify
  107.                a bitrate with -b, between 8 and 640 kbps.
  108.  
  109. Variable Bit Rate (VBR)
  110. -v             VBR
  111. --vbr-old      use old variable bitrate (VBR) routine (default)
  112. --vbr-new      use new variable bitrate (VBR) routine
  113. -V n           VBR quality setting  (0=highest quality, 9=lowest)
  114. -b  n          specify a minimum allowed bitrate (8,16,24,...,320)
  115. -B  n          specify a maximum allowed bitrate (8,16,24,...,320)
  116. -F             strictly enforce minimum bitrate
  117. -t             disable Xing VBR informational tag 
  118. --nohist       disable display of VBR bitrate histogram
  119.  
  120. --abr n        specify average bitrate desired
  121.  
  122.  
  123. Experimental (undocumented):  may work better or worse:
  124.  
  125. -X n           try different quality measures (when comparing quantizations)
  126. -Y             
  127. -Z             
  128.  
  129.  
  130. Operational:
  131.  
  132. -r             assume input file is raw PCM
  133. -s  n          input sampling frequency in kHz (for raw PCM input files)
  134. --resample n   output sampling frequency
  135. --mp3input     input file is an MP3 file.  decode using mpglib/mpg123
  136. --ogginput     input file is an Ogg Vorbis file.  decode using libvorbis
  137. -x             swap bytes of input file
  138. --scale <arg>  multiply PCM input by <arg>
  139. -a             downmix stereo input file to mono .mp3
  140. -e  n/5/c      de-emphasis
  141. -p             add CRC error protection
  142. -c             mark the encoded file as copyrighted
  143. -o             mark the encoded file as a copy
  144. -S             don't print progress report, VBR histogram
  145. -g             run MP3x, the graphical frame analyzer
  146. --strictly-enforce-ISO   comply as much as possible to ISO MPEG spec
  147.  
  148. --decode       assume input file is an mp3 file, and decode to wav.
  149. -t             disable writing of WAV header when using --decode
  150.                (decode to raw pcm, native endian format (use -x to swap))
  151.  
  152. --ogg          Encode using Ogg Vorbis (.ogg) instead of mp3.
  153.  
  154.  
  155.  
  156. ID3 tagging:
  157.  
  158. --tt <title>    audio/song title (max 30 chars for version 1 tag)
  159. --ta <artist>   audio/song artist (max 30 chars for version 1 tag)
  160. --tl <album>    audio/song album (max 30 chars for version 1 tag)
  161. --ty <year>     audio/song year of issue (1 to 9999)
  162. --tc <comment>  user-defined text (max 30 chars for v1 tag, 28 for v1.1)
  163. --tn <track>    audio/song track number (1 to 255, creates v1.1 tag)
  164. --tg <genre>    audio/song genre (name or number in list)
  165. --add-id3v2     force addition of version 2 tag
  166. --id3v1-only    add only a version 1 tag
  167. --id3v2-only    add only a version 2 tag
  168. --space-id3v1   pad version 1 tag with spaces instead of nulls
  169. --pad-id3v2     pad version 2 tag with extra 128 bytes
  170. --genre-list    print alphabetically sorted ID3 genre list and exit
  171.  
  172. Note: A version 2 tag will NOT be added unless one of the input fields
  173. won't fit in a version 1 tag (e.g. the title string is longer than 30
  174. characters), or the '--add-id3v2' or '--id3v2-only' options are used,
  175. or output is redirected to stdout.
  176.  
  177.  
  178.  
  179. options not yet described:
  180. --nores            disable bit reservoir
  181. --noath            disable ATH
  182. --athlower <n db>  lower the ATH by n db.  
  183. --athshort         use only the ATH for short blocks
  184. --cwlimit <freq>   specify range of tonality calculation
  185. --disptime
  186. --notemp           disable temporal masking
  187.  
  188. --lowpass
  189. --lowpass-width
  190. --highpass
  191. --highpass-width
  192.  
  193.  
  194.  
  195.  
  196.  
  197. =======================================================================
  198. Detailed description of all options in alphabetical order
  199. =======================================================================
  200.  
  201.  
  202. =======================================================================
  203. downmix
  204. =======================================================================
  205. -a  
  206.  
  207. mix the stereo input file to mono and encode as mono.  
  208.  
  209. This option is only needed in the case of raw PCM stereo input 
  210. (because LAME cannot determine the number of channels in the input file).
  211. To encode a stereo PCM input file as mono, use "lame -m s -a"
  212.  
  213. For WAV and AIFF input files, using "-m m" will always produce a
  214. mono .mp3 file from both mono and stereo input.
  215.  
  216.  
  217. =======================================================================
  218. average bitrate encoding (aka Safe VBR)
  219. =======================================================================
  220. --abr n
  221.  
  222. turns on encoding with a targeted average bitrate of n kbps, allowing
  223. to use frames of different sizes.  The allowed range of n is 8...320 
  224. kbps, you can use any integer value within that range.
  225.  
  226. It can be combined with the -b and -B switches like
  227. lame --abr 123 -b 64 -B 192 a.wav a.mp3
  228. which would limit the allowed frame sizes between 64 and 192 kbps.
  229.  
  230. Using -B is NOT RECOMMENDED.  A 128 kbps CBR bitstream, because of the
  231. bit reservoir, can actually have frames which use as many bits as a
  232. 320 kbps frame.  VBR modes minimize the use of the bit reservoir, and
  233. thus need to allow 320 kbps frames to get the same flexability as CBR
  234. streams.
  235.  
  236.  
  237.  
  238.  
  239. =======================================================================
  240. ATH only
  241. =======================================================================
  242. --athonly
  243.  
  244. This option causes LAME to ignore the output of the psy-model and
  245. only use masking from the ATH.  Might be useful at very high bitrates
  246. or for testing the ATH.  
  247.  
  248.  
  249.  
  250.  
  251. =======================================================================
  252. bitrate
  253. =======================================================================
  254. -b  n
  255.  
  256. For MPEG-1 (sampling frequencies of 32, 44.1 and 48 kHz)
  257. n =   32, 40, 48, 56, 64, 80, 96, 112, 128, 160, 192, 224, 256, 320
  258.  
  259. For MPEG-2 and MPEG-2.5 (sampling frequencies of 8, 11.025, 
  260. 12, 16, 22.05 and 24 kHz)
  261. n = 8, 16, 24, 32, 40, 48, 56, 64, 80, 96, 112, 128, 144, 160
  262.  
  263.  
  264. The bitrate to be used.  Default is 128 kbps MPEG1, 80 kbps MPEG2.
  265.  
  266. When used with variable bitrate encodings (VBR), -b specifies the
  267. minimum bitrate to use.  This is useful to prevent LAME VBR from
  268. using some very aggressive compression which can cause some distortion
  269. due to small flaws in the psycho-acoustic model.
  270.  
  271. =======================================================================
  272. max bitrate
  273. =======================================================================
  274. -B  n
  275.  
  276. see also option "-b" for allowed bitrates.
  277.  
  278. Maximum allowed bitrate when using VBR.
  279.  
  280.  
  281. =======================================================================
  282. copyright
  283. =======================================================================
  284. -c   
  285.  
  286. mark the encoded file as copyrighted
  287.  
  288.  
  289.  
  290. =======================================================================
  291. block type control
  292. =======================================================================
  293. -d 
  294.  
  295. Allows the left and right channels to use different block types.
  296. Normally this is not allowed, only because the FhG encoder does
  297. not seem to allow it either.  If anyone finds a sample where -d
  298. produces better results, let me know.  (mt@sulaco.org)
  299.  
  300.  
  301. =======================================================================
  302. mpglib decode capability
  303. =======================================================================
  304. --decode 
  305.  
  306. This just uses LAME's mpg123/mpglib interface to decode an MP3 file to
  307. a wav file.  The input file can be any input type supported by
  308. encoding, including .mp3 (layers 1, 2 and 3) and .ogg.  
  309.  
  310. If -t is used (disable wav header), LAME will output
  311. raw pcm in native endian format (use -x to swap bytes).
  312.  
  313.  
  314. =======================================================================
  315. de-emphasis
  316. =======================================================================
  317. -e  n/5/c   
  318.  
  319.   n = (none, default)
  320.   5 = 0/15 microseconds
  321.   c = citt j.17
  322.  
  323. All this does is set a flag in the bitstream.  If you have a PCM
  324. input file where one of the above types of (obsolete) emphasis has
  325. been applied, you can set this flag in LAME.  Then the mp3 decoder
  326. should de-emphasize the output during playback, although most 
  327. decoders ignore this flag.
  328.  
  329. A better solution would be to apply the de-emphasis with a standalone
  330. utility before encoding, and then encode without -e.  
  331.  
  332.  
  333.  
  334. =======================================================================
  335. fast mode
  336. =======================================================================
  337. -f   
  338.  
  339. Same as -q 7.  
  340. disable noise shaping.  Encodes faster, but lower quality.
  341. Psycho acoustics are computed for bit allocation and 
  342. pre-echo detection.
  343.  
  344. =======================================================================
  345. strictly enforce VBR minimum bitrate
  346. =======================================================================
  347. -F   
  348.  
  349. strictly enforce VBR minimum bitrate.  With out this optioni, the minimum
  350. bitrate will be ignored for passages of analog silence.
  351.  
  352.  
  353.  
  354. =======================================================================
  355. free format bitstreams
  356. =======================================================================
  357. --freeformat   
  358.  
  359. LAME will produce a fixed bitrate, free format bitstream.
  360. User must specify the desired bitrate in kbps, which can
  361. be any integer between 8 and 640.
  362.  
  363. Not supported by most decoders.  Decoders only required to support
  364. up to 320 kbps.  
  365.  
  366. Decoders which can handle free format:
  367.                      supports up to
  368. MAD                      640 kbps
  369. "lame --decode"          550 kbps  
  370. Freeamp:                 440 kbps
  371. l3dec:                   310 kbps
  372.  
  373.  
  374.  
  375.  
  376.  
  377. =======================================================================
  378. graphical frame analyzer
  379. =======================================================================
  380. -g
  381.  
  382. run MP3x, the graphical frame analyzer analysis on the inputfile.  The
  383. inputfile can be either an .mp3 file or uncompressed audio file.  MP3x
  384. support must be compiled into LAME, and requires GTK 1.2.
  385. Documentation (outdated) is under the About pull down menu.
  386.  
  387.  
  388.  
  389. =======================================================================
  390. high quality
  391. =======================================================================
  392. -h
  393.  
  394. use some quality improvements.  The same as -q 2.
  395.  
  396.  
  397.  
  398. =======================================================================
  399. keep all frequencies
  400. =======================================================================
  401. -k   
  402.  
  403. keep all frequencies.  (Disable all filters)
  404.  
  405. LAME will automatically apply various types of lowpass filters.  This
  406. is because the high frequency coefficients can take up a lot of bits
  407. that would be better used for lower, more important frequencies.
  408.  
  409. -k will disable all lowpass filtering.  Not recommended.
  410.  
  411.  
  412.  
  413. =======================================================================
  414. Modes:
  415. =======================================================================
  416.  
  417. -m m           mono
  418. -m s           stereo
  419. -m j           joint stereo
  420. -m f           forced mid/side stereo
  421. -m d           dual (independent) channels
  422. -m i           intensity stereo
  423. -m a           auto
  424.  
  425. MONO is the default mode for mono input files.  If "-m m" is specified
  426. for a stereo input file, the two channels will be averaged into a mono
  427. signal.  
  428.  
  429. STEREO
  430.  
  431. JOINT STEREO is the default mode for stereo files with fixed bitrates of
  432. 128 kbps or less.  At higher fixed bitrates, the default is stereo.
  433. For VBR encoding, jstereo is the default for VBR_q >4, and stereo
  434. is the default for VBR_q <=4.  You can override all of these defaults
  435. by specifing the mode on the command line.  
  436.  
  437. jstereo means the encoder can use (on a frame by frame bases) either
  438. regular stereo (just encode left and right channels independently)
  439. or mid/side stereo.  In mid/side stereo, the mid (L+R) and side (L-R)
  440. channels are encoded, and more bits are allocated to the mid channel
  441. than the side channel.  This will effectively increase the bandwidth
  442. if the signal does not have too much stereo separation.  
  443.  
  444. Mid/side stereo is basically a trick to increase bandwidth.  At 128 kbps,
  445. it is clearly worth while.  At higher bitrates it is less useful.
  446.  
  447. Using mid/side stereo inappropriately can result in audible
  448. compression artifacts.  To much switching between mid/side and regular
  449. stereo can also sound bad.  To determine when to switch to mid/side
  450. stereo, LAME uses a much more sophisticated algorithm than that
  451. described in the ISO documentation.
  452.  
  453. FORCED MID/SIDE STEREO forces all frames to be encoded mid/side stereo.  It 
  454. should only be used if you are sure every frame of the input file
  455. has very little stereo seperation.  
  456.  
  457. DUAL CHANNELS
  458.  
  459. INTENSITY STEREO
  460.  
  461. AUTO
  462.  
  463. Auto select should select (if input is stereo)
  464.           8 kbps   Mono
  465.      16- 96 kbps   Intensity Stereo (if available, otherwise Joint Stereo)
  466.     112-128 kbps   Joint Stereo -mj
  467.     160-192 kbps   -mj with variable mid/side threshold
  468.     224-320 kbps   Independent Stereo -ms
  469.  
  470.  
  471.  
  472. =======================================================================
  473. MP3 input file
  474. =======================================================================
  475. --mp3input
  476.  
  477. Assume the input file is a MP3 file.  LAME will decode the input file
  478. before re-encoding it.  Since MP3 is a lossy format, this is 
  479. not recommended in general.  But it is useful for creating low bitrate
  480. mp3s from high bitrate mp3s.  If the filename ends in ".mp3" LAME will assume
  481. it is an MP3.  For stdin or MP3 files which dont end in .mp3 you need
  482. to use this switch.
  483.  
  484.  
  485. =======================================================================
  486. disable historgram display
  487. =======================================================================
  488. --nohist
  489.  
  490. By default, LAME will display a bitrate histogram while producing
  491. VBR mp3 files.  This will disable that feature.
  492.  
  493.  
  494. =======================================================================
  495. disable short blocks
  496. =======================================================================
  497. --noshort
  498.  
  499. Encode all frames using long blocks.
  500.  
  501.  
  502.  
  503. =======================================================================
  504. non-original
  505. =======================================================================
  506. -o   
  507.  
  508. mark the encoded file as a copy
  509.  
  510.  
  511.  
  512. =======================================================================
  513. Ogg Vorbis encoding
  514. =======================================================================
  515. --ogg
  516.  
  517. Encode using the Ogg Vobis codec (using libvorbis) instead of
  518. LAME's internal mp3 codec.
  519.  
  520. Most options related to the internal workings of the MP3 format
  521. are ignored when using "--ogg".  But downsampling and stereo/mono
  522. options work.  
  523.  
  524. Currently (8/00) Ogg Vorbis only supports 5 modes, which range
  525. from approximately 128 kbps to 320 kbps.   Based on the bitrate
  526. specified (or the -V n option), LAME will take its best guess
  527. as to which of the 5 Vorbis modes will give about close to the
  528. desired bitrate.
  529.  
  530.  
  531.  
  532.  
  533. =======================================================================
  534. Ogg Vorbis input file
  535. =======================================================================
  536. --ogginput
  537.  
  538. Assume the input file is an Ogg Vorbis file.  Mostly useful
  539. with --decode for playing back .ogg files, or converting
  540. your .ogg collection to MP3 :-)
  541.  
  542. If the filename ends in ".ogg" LAME will assume it is Ogg.  For
  543. stdin or files which dont end in .ogg you need to use this switch.
  544.  
  545.  
  546.  
  547.  
  548. =======================================================================
  549. CRC error protection
  550. =======================================================================
  551. -p  
  552.  
  553. turn on CRC error protection.  
  554. Yes this really does work correctly in LAME.  However, it takes 
  555. 16 bits per frame that would otherwise be used for encoding.
  556.  
  557.  
  558. =======================================================================
  559. algorithm quality selection
  560. =======================================================================
  561. -q n  
  562.  
  563. Bitrate is of course the main influence on quality.  The higher the
  564. bitrate, the higher the quality.  But for a given bitrate,
  565. we have a choice of algorithms to determine the best
  566. scalefactors and huffman encoding (noise shaping).
  567.  
  568. -q 0:  use slowest & best possible version of all algorithms.
  569.  
  570. -q 2:  recommended.  Same as -h.  -q 0 and -q 1 are slow and may not produce 
  571.        significantly higher quality.  
  572.  
  573. -q 5:  default value.  Good speed, reasonable quality
  574.  
  575. -q 7:  same as -f.  Very fast, ok quality.  (psycho acoustics are
  576.        used for pre-echo & M/S, but no noise shaping is done.  
  577.  
  578. -q 9:  disables almost all algorithms including psy-model.  poor quality.
  579.  
  580.  
  581.  
  582. =======================================================================
  583. input file is raw pcm
  584. =======================================================================
  585. -r  
  586.  
  587. Assume the input file is raw pcm.  Sampling rate and mono/stereo/jstereo
  588. must be specified on the command line.  Without -r, LAME will perform
  589. several fseek()'s on the input file looking for WAV and AIFF headers.
  590.  
  591. Not supported if LAME is compiled to use LIBSNDFILE.
  592.  
  593.  
  594.  
  595. =======================================================================
  596. output sampling frequency in kHz
  597. =======================================================================
  598. --resample  n
  599.  
  600. where n = 8, 11.025, 12, 16, 22.05, 24, 32, 44.1, 48
  601.  
  602. Output sampling frequency.  Resample the input if necessary.  
  603.  
  604. If not specified, LAME may sometimes resample automatically 
  605. when faced with extreme compression conditions (like encoding
  606. a 44.1 kHz input file at 32 kbps).  To disable this automatic
  607. resampling, you have to use --resamle to set the output samplerate
  608. equal to the inptu samplerate.  In that case, LAME will not
  609. perform any extra computations.
  610.  
  611.  
  612.  
  613. =======================================================================
  614. sampling frequency in kHz
  615. =======================================================================
  616. -s  n
  617.  
  618. where n = sampling rate in kHz.
  619.  
  620. Required for raw PCM input files.  Otherwise it will be determined
  621. from the header information in the input file.
  622.  
  623. LAME will automatically resample the input file to one of the
  624. supported MP3 samplerates if necessary.
  625.  
  626.  
  627. =======================================================================
  628. silent operation
  629. =======================================================================
  630. -S
  631.  
  632. don't print progress report
  633.  
  634. =======================================================================
  635. scale
  636. =======================================================================
  637. --scale <arg>
  638.  
  639. Scales input by <arg>.  This just multiplies the PCM data
  640. (after it has been converted to floating point) by <arg>.  
  641.  
  642. <arg> > 1:  increase volume
  643. <arg> = 1:  no effect
  644. <arg> < 1:  reduce volume
  645.  
  646. Use with care, since most MP3 decoders will truncate data
  647. which decodes to values greater than 32768.  
  648.  
  649.  
  650. =======================================================================
  651. strict ISO complience
  652. =======================================================================
  653. --strictly-enforce-ISO   
  654.  
  655. With this option, LAME will enforce the 7680 bit limitation on
  656. total frame size.  This results in many wasted bits for
  657. high bitrate encodings.
  658.  
  659.  
  660. =======================================================================
  661. disable Xing VBR tag
  662. =======================================================================
  663. -t              
  664.  
  665. Disable writing of the Xing VBR Tag (only valid if -v flag is
  666. specified) This tag in embedded in frame 0 of the MP3 file.  It lets
  667. VBR aware players correctly seek and compute playing times of VBR
  668. files.
  669.  
  670. When '--decode' is specified (decode mp3 to wav), this flag will 
  671. disable writing the WAV header.  The output will be raw pcm,
  672. native endian format.  Use -x to swap bytes.
  673.  
  674.  
  675.  
  676. =======================================================================
  677. variable bit rate  (VBR)
  678. =======================================================================
  679. -v
  680.  
  681. Turn on VBR.  There are several ways you can use VBR.  I personally
  682. like using VBR to get files slightly bigger than 128 kbps files, where
  683. the extra bits are used for the occasional difficult-to-encode frame.
  684. For this, try specifying a minimum bitrate to use with VBR:
  685.  
  686. lame -v      -b 112  input.wav output.mp3
  687.  
  688. If the file is too big, use -V n, where n = 0...9
  689.  
  690. lame -v -V n -b 112  input.wav output.mp3
  691.  
  692.  
  693. If you want to use VBR to get the maximum compression possible,
  694. and for this, you can try:  
  695.  
  696. lame -v  input.wav output.mp3
  697. lame -v -V n input.wav output.mp3         (to vary quality/filesize)
  698.  
  699.  
  700.  
  701.  
  702.  
  703.  
  704. =======================================================================
  705. VBR quality setting
  706. =======================================================================
  707. -V n       
  708.  
  709. n = 0...9.  Specifies the value of VBR_q.
  710. default = 4,  highest quality = 0, smallest files = 9
  711.  
  712.  
  713.  
  714. How is VBR_q used?
  715.  
  716. The value of VBR_q influences two basic parameters of LAME's psycho
  717. acoustics:
  718.  a) the absolute threshold of hearing
  719.  b) the sample to noise ratio
  720. The lower the VBR_q value the lower the injected quantization noise
  721. will be.
  722.  
  723. *NOTE* No psy-model is perfect, so there can often be distortion which
  724. is audible even though the psy-model claims it is not!  Thus using a
  725. small minimum bitrate can result in some aggressive compression and
  726. audible distortion even with -V 0.  Thus using -V 0 does not sound
  727. better than a fixed 256 kbps encoding.  For example: suppose in the 1 kHz
  728. frequency band the psy-model claims 20 dB of distortion will not be
  729. detectable by the human ear, so LAME VBR-0 will compress that
  730. frequency band as much as possible and introduce at most 20 dB of
  731. distortion.  Using a fixed 256 kbps framesize, LAME could end up
  732. introducing only 2 dB of distortion.  If the psy-model was correct,
  733. they will both sound the same.  If the psy-model was wrong, the VBR-0
  734. result can sound worse.
  735.  
  736.  
  737. =======================================================================
  738. voice encoding mode
  739. =======================================================================
  740. --voice
  741.  
  742. An experimental voice encoding mode.  Tuned for 44.1 kHz input files.
  743.  
  744.  
  745. =======================================================================
  746. swapbytes   
  747. =======================================================================
  748. -x
  749.  
  750. swap bytes in the input file (and output file when using --decode).
  751. For sorting out little endian/big endian type problems.  If your
  752. encodings sound like static, try this first.
  753.